package com.depin.pdaapp.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.cardview.widget.CardView;

import com.depin.pdaapp.R;
import com.jaydenxiao.common.base.BaseActivity;
import com.vondear.rxtool.RxSPTool;

import butterknife.BindView;
import butterknife.OnClick;

import static com.depin.pdaapp.constant.Constant.LOGINTYPE;

public class SelectLoginActivity extends BaseActivity {


    @BindView(R.id.tv_bar)
    TextView tvBar;
    @BindView(R.id.iv_notification)
    ImageView ivNotification;
    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.card_manager)
    CardView cardManager;
    @BindView(R.id.cd_employ)
    CardView cdEmploy;

    @Override
    public int getLayoutId() {
        return R.layout.activity_select_login;
    }

    @Override
    public void initPresenter() {

    }

    @Override
    public void initView() {
        ivBack.setVisibility(View.GONE);
        tvBar.setText("选择身份");
    }


    @OnClick({R.id.card_manager, R.id.cd_employ})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.card_manager:
                LoginActivity.start(this, 1);
                RxSPTool.putInt(this,LOGINTYPE,1);
                break;
            case R.id.cd_employ:
                LoginActivity.start(this, 2);
                RxSPTool.putInt(this,LOGINTYPE,2);
                break;
        }
    }
}